﻿using HamcoWcs.Models.Devices;
using System.Collections.Generic;

namespace HamcoWcs.Contract.ContractPcon.IPconDbMsgParsers
{
    /// <summary>
    /// Srm消息解析器工厂接口
    /// </summary>
    public interface ISrmParseFactory
    {
        /// <summary>
        /// 解析器集合
        /// </summary>
        IEnumerable<ISrmParser> Parsers { get; }
        /// <summary>
        /// 创建对应的解析器
        /// </summary>
        /// <param name="srm"></param>
        /// <returns><see cref="ISrmParser"/></returns>
        ISrmParser CreateParser(SrmDto srm);
    }
}
